package cn.zyq.ykb.mapper.user;

import cn.zyq.ykb.beans.task.vo.UserCountVo;
import cn.zyq.ykb.beans.user.UserPromotion;
import com.alibaba.fastjson.JSONObject;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Component;
import cn.zyq.ykb.system.config.common.BaseMapper;

import java.util.Date;
import java.util.List;
import java.util.Map;
/**
 * 用户-推广Mapper接口
 *
 * @author SystemAuth
 * @date 2023-05-23
 */
@Component
@Mapper
public interface UserPromotionMapper extends BaseMapper<UserPromotion> {
    List<UserPromotion> list(Map<String, Object> param);

    List<UserPromotion> selectUserPromotionList(JSONObject kv);

    UserCountVo getCount(Integer userID, String createTime);

    UserCountVo getSum(@Param("promotionType")Integer promotionType,@Param("userID") Integer userID );

    int selectTotal(Integer userID);

    UserCountVo getCount1(Integer userID);

    UserCountVo getSum1(@Param("promotionType")Integer promotionType,@Param("userID") Integer userID );
}
